(x_draw_glyph_string_background): Clear the background
authorJason Rumney <jasonr@gnu.org>
Fri, 15 Feb 2008 17:15:08 +0000 (17:15 +0000)
committerJason Rumney <jasonr@gnu.org>
Fri, 15 Feb 2008 17:15:08 +0000 (17:15 +0000)
manually when cleartype is in use.
(x_draw_glyph_string_foreground): Draw text transparently when
cleartype is in use.

src/w32term.c

index 2b007b14b44a9163a30ff6ea5de544fabd9989db..bfda8e9e9d3b70b8859c756384c4a4e10dba0fed 100644 (file)
@@ -1519,6 +1519,7 @@ x_draw_glyph_string_background (s, force_p)
               || s->font_not_found_p
               || s->extends_to_end_of_line_p
                || s->font->bdf
+               || cleartype_active
               || force_p)
        {
          x_clear_glyph_string_rect (s, s->x, s->y + box_line_width,
@@ -1547,7 +1548,8 @@ x_draw_glyph_string_foreground (s)
   else
     x = s->x;
 
-  if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR))
+  if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR)
+      || cleartype_active)
     SetBkMode (s->hdc, TRANSPARENT);
   else
     SetBkMode (s->hdc, OPAQUE);